var router = require('koa-router')();
/*控制层*/
var controller = require('../../../src/controllers/back/tb_tbk.js');

// 清空订单数据表 -- /main/v1/back/tb_tbk/clearOrders
router.get('/clearOrders', controller.clearOrders);
// 导表开始时间查询 -- /main/v1/back/tb_tbk/queryStartDate
router.post('/queryStartDate', controller.queryStartDate);
// 删除指时间后订单 -- /main/v1/back/tb_tbk/clearOrderBytime
router.post('/clearOrderBytime', controller.clearOrderBytime);
// 导入订单的excel -- /main/v1/back/tb_tbk/orderExcel
router.post('/orderExcel', controller.orderExcel);
// 执行定时导入订单 -- /main/v1/back/tb_tbk/setTimeOrder
router.post('/setTimeOrder', controller.setTimeOrder);
// 获取淘宝授权 -- /main/v1/back/tb_tbk/oauth2
router.post('/oauth2', controller.oauth2);
// 更新分类数据 -- /main/v1/back/tb_tbk/insertTbcats
router.post('/insertTbcats', controller.insertTbcats);


router.get('/test', controller.dataTest);


module.exports = router
